import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.util.HashMap;



public class KlantSelectieGUI extends SelectieGUI {
	
	
	public KlantSelectieGUI(Bank b){
		super(b);
		c.add(ok);
		this.setSize(new Dimension(220,80));
		setTitle("Selecteer klant");
		this.setVisible(true);
		
				
	}
	
	public void actionPerformed(ActionEvent e){
		if(e.getSource() == ok){
			String nm = (String) klant.getSelectedItem();
			HashMap mp = b.klanten();
			Klant kl = (Klant) mp.get(nm);
			dispose();
			new RekeningAanmakenGUI(kl,b);
		}
	}
}
